﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Winter.BackEnd.Models.DataTypes;

namespace Winter.BackEnd.Models.Domain
{
    public class Admin
    {
        #region IPerson Members

        public string Role
        {
            get { return UserRoles.Admin.RoleName; }
        }

        public string FullName
        {
            get { return Repository.CurrentUser.Person.FullName; }
        }

        public string Sex
        {
            get { return Repository.CurrentUser.Person.Sex.Caption; }
        }

        public string BirthDate
        {
            get { throw new NotImplementedException(); }
        }

        public string Email
        {
            get { throw new NotImplementedException(); }
        }

        public System.Collections.ICollection Duties
        {
            get { throw new NotImplementedException(); }
        }

        public IList<Winter.BackEnd.Models.DataTypes.MessageDTO> RecievedMessages
        {
            get { throw new NotImplementedException(); }
        }

        public IEnumerable<Winter.BackEnd.Models.DataTypes.MenuLink> NavigationMenu
        {
            get
            {
                List<MenuLink> menu = new List<MenuLink>();
                menu.Add(new MenuLink()
                {
                    LinkText = "Statistic",
                    ActionName = "Index",
                    ControllerName = "Admin"
                });
                menu.Add(new MenuLink()
                {
                    LinkText = "Create Schedule",
                    ActionName = "Details",
                    ControllerName = "Group"
                });
                menu.Add(new MenuLink()
                {
                    LinkText = "Create subject",
                    ActionName = "Index",
                    ControllerName = "Classes"
                });
                menu.Add(new MenuLink()
                {
                    LinkText = "University",
                    ActionName = "Index",
                    ControllerName = "Universities"
                });
                return menu;
            }
        }

        #endregion
    }
}
